package strand

import (
	"strings"
)

// testVersion
const testVersion = 3

// ToRNA
func ToRNA(input string) (r string) {
	var s = make([]string, len(input))
	for i := 0; i < len(input); i++ {
		if input[i:i+1] == "G" {
			s[i] = "C"
			continue
		}
		if input[i:i+1] == "C" {
			s[i] = "G"
			continue
		}
		if input[i:i+1] == "T" {
			s[i] = "A"
			continue
		}
		if input[i:i+1] == "A" {
			s[i] = "U"
			continue
		}
	}

	r = strings.Join(s, "")
	return
}
